package com.demo.service;

import com.demo.entity.BOTest;
import com.demo.mapper.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestService {

    @Autowired
    private TestMapper testMapper;

    public int save(){
        BOTest test = new BOTest();
        test.setId(111);
        test.setName("123123");
        return testMapper.save(test);
    }

    public List<BOTest> find(){
        return testMapper.queryAll();
    }
}
